import { Component, OnInit, Output, EventEmitter } from '@angular/core';
import { getDate } from 'date-fns';
@Component({
  selector: 'task-sidebar',
  templateUrl: './sidebar.component.html',
  styleUrls: ['./sidebar.component.scss']
})
export class SidebarComponent implements OnInit {
  today = 'day';
  @Output() sidebarClick = new EventEmitter<void>();
  constructor() {
    this.today = `day${getDate(new Date())}`;
  }

  ngOnInit() {
  }
  onClick() {
    this.sidebarClick.emit();
  }
}
